home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 June / EnigmA AMIGA RUN 19 (1997)(G.R. Edizioni)(IT)[!][issue 1997-06][EAR-CD III].iso / softwareupdate / cybergraphix update / cyberupdate2.23 / tools / cyberprefsx < prev    next >
Text File  |  1996-12-08  |  28KB  |  578 lines

  1. ;********************************************************************************
  2. ;    ______        __                  ______                     __  __   __
  3. ;   / __  /       / /                 / __  /                    / /  \ \ / /
  4. ;  / /  -'__  __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__  \ \ /
  5. ; / /     \ \/ // __  // ____// .__// // \ / .__// __  // __  // __  / /  /
  6. ;/ /___    \  // /_/ // __/_ / /   / /_/ // /   / __  // /_/ // / / / / \ \
  7. ;\____/    / //_____//_____//_/   /_____//_/   /_/ /_// ____//_/ /_/ /_/ \_\
  8. ;         /_/                                        / /
  9. ;                                                   /_/
  10. ;
  11. ; $VER: 3.6 (December-05-1996)
  12. ; CyberPrefsX  ©1994,1995,1996 by Robert C. Reiswig
  13. ; [was: CGraphXPrefs & EnvSettings & ChangeSettings]
  14. ; Suggestions or problems: rcr@netcom.com
  15. ;--------------------------------------------------------------------------------
  16. ;********************************************************************************
  17.  
  18. ;********************************************************************************
  19. ; Read All System information
  20. ;********************************************************************************
  21. (if (= @user-level 0) (set @user-level 2))
  22.  
  23. (set lan 1)
  24. (if (> (exists ("env:Language")) 0)
  25.   (if (= "deutsch" (getenv "Language")) (set lan 0) )
  26. )
  27.  
  28. (set CyberDrawer "CyberVision:") (set were "sys")
  29.  
  30. (if (> (exists ("sys:devs/monitors/Spectrum")) 0)    (set #BGuess 1)  )
  31. (if (> (exists ("sys:devs/monitors/Piccolo")) 0)     (set #BGuess 2)  )
  32. (if (> (exists ("sys:devs/monitors/Domino")) 0)      (set #BGuess 3)  )
  33. (if (> (exists ("sys:devs/monitors/RetinaZ3")) 0)    (set #BGuess 4)  )
  34. (if (> (exists ("sys:devs/monitors/PiccoSD64")) 0)   (set #BGuess 5)  )
  35. (if (> (exists ("sys:devs/monitors/A2410")) 0)       (set #BGuess 7)  )
  36. (if (> (exists ("sys:devs/monitors/Picasso")) 0)     (set #BGuess 0)  )
  37. (if (> (exists ("sys:devs/monitors/CyberVision")) 0) (set #BGuess 6)  )
  38. (if (> (exists ("sys:devs/monitors/A2410")) 0)       (set #BGuess 7)  )
  39. (if (> (exists ("sys:devs/monitors/DraCoAltais")) 0) (set #BGuess 8)  )
  40. (if (> (exists ("sys:devs/monitors/Merlin")) 0)      (set #BGuess 9)  )
  41.  
  42. ;********************************************************************************
  43. ; For some reason people seem to loose this directory
  44. ;********************************************************************************
  45. ;(if (< (exists "env:cybergraphics") 2) (makedir "env:cybergraphics") )
  46. ;(if (< (exists "envarc:cybergraphics") 2) (makedir "envarc:cybergraphics") )
  47.  
  48. (if (= FrankIsTheKingOfSwing 46) (welcome) )
  49. (set ja 0)
  50. ;********************************************************************************
  51. ;
  52. ;English Information
  53. ;
  54. ;********************************************************************************
  55. (set #currset "\n\nShould this option be enabled ?")
  56. (set #changeenv "Set/Explain/Change Environment Varibles")
  57. (set #changemonitor "Set/Change Default Monitor Setting")
  58. (set #changecv "Set/Change ToolType for CVMode")
  59. (set #askchange "Please Select what option you would like to change.")
  60. (set #askwereisCVMode "Please Select the CVmode program. This way the installer can get the correct path to the 'CVMode' file")
  61. (set #noicon "\n\nThe installer could not find the '.info' file for CVMode.  Please re-copy or install the CVMode Program")
  62. (set #board (cat "\nPlease Select the Graphics Board you have.\n"))
  63. (set #yes "Yes - On")
  64. (set #no "No - Off")
  65. (set #youwantto "You want to set:")
  66. (set #to "To:")
  67. (set #board (cat "\nPlease Select the Graphics Board you are using CyberGraphX on:\n"))
  68. (set MonitorIS "A Custom Setting File")
  69. (set #lookslikemonitor (cat "Select the Monitor Setting File You wish to use. "
  70.                             "If you are not sure on what the Max your monitor can handle is, "
  71.                             "quit and look it up in the monitor manual! It looks like it is set to: "
  72.                        )
  73. )
  74. (set #quickchangeenv "Quick Set/Change Environment Variables ")
  75. (set #currenv "\nCurrent Settings for Environment Variables\n")
  76. (set #quit "Quit")
  77. (set #cpup2c (cat "CPUP2C\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  78.                   "By setting this variable, the planar-to-chunky conversion "
  79.                   "will be done by the CPU (in contrast to the blitter conversion) "
  80.                   "Therefore the ugly looking "planar" blitting effects are gone, "
  81.                   "but the software conversion is slower. Do you wish to Enable this feature?"
  82.              )
  83. )
  84. (set #hirescrsr (cat "HIRESCRSR\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  85.                      "By setting this variable, the Lores-Sprites on non-AA-machines "
  86.                      "become Hires-sprites (they are no longer doubled by "
  87.                      "the CyberGraphX-Software). "
  88.                      "This variable is identical to the tooltype HIRESSPRITE "
  89.                      "of older Picasso-monitor files."
  90.                 )
  91. )
  92. (set #hide15bit (cat "HIDE15BIT\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  93.                      "By setting this variable, you can switch off 15bit modes to reduce "
  94.                      "screenmode list length. The Modes are still available but hidden."
  95.                 )
  96. )
  97. (set #alertemu  (cat "ALERTEMU\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  98.                      "By setting this variable, DisplayAlert(), (The Screens you get when the machine crashes.) "
  99.                      "will be placed on an CyberGraphX screens."
  100.                 )
  101. )
  102. (set #nochip    (cat "NOCHIPSCREEN\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  103.                      "By setting this variable, 8 bit deep screens are always opened "
  104.                      "in Fast memory. Useful with 1MB chip systems but you should "
  105.                      "avoid it with 2MB chip, because the older method is more "
  106.                      "compatible (no taglist changes etc.) "
  107.                 )
  108. )
  109. (set #planes2  (cat "PLANES2FAST\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  110.                      "With this option on, non displayable planar bitmaps "
  111.                      "are allocated in fast memory. This options speeds up "
  112.                      "handling of planar bitmaps but could lead to problem s"
  113.                      "with amiga graphics which insist on planar graphics "
  114.                      "placed in chip memory. Take care when using this option."
  115.                 )
  116. )
  117. (set #nopass   (cat "NOPASSTHROUGH\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  118.                     "If this option is enabled, the monitor switch on every "
  119.                     "CyberGraphX supported board is deactivated. This option is "
  120.                     "required for multi monitor systems."
  121.                 )
  122. )
  123. (set #keepamiga (cat "KEEPAMIGAVIDEO\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  124.                      "If this option is disabled, everytime a CyberGraphX display "
  125.                      "becomes frontscreen, Amiga display DMA is switched off in order "
  126.                      "to increase chipmem access speed. You can avoid this by enabling "
  127.                      "this option. "
  128.                 )
  129. )
  130. (set #bootlogo  (cat "BOOTLOGO\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  131.                      "If this option is disabled (set to 'No - Off'), the CyberGraphX Bootlogo "
  132.                      "will not be shown at boot time."
  133.                 )
  134. )
  135. (set #savemem   (cat "SAVEMEM\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  136.                      "If this option is on, CyberGraphX will reduce memory consumption in less or equal 16 colour "
  137.                      "modes, CyberGraphX keeps a planar representation of the screen "
  138.                      "bitmap in fastmem and a chunky representation in video memory."
  139.                 )
  140. )
  141.  
  142.  
  143. ;********************************************************************************
  144. ;
  145. ;German Information
  146. ;
  147. ;********************************************************************************
  148. (if (= LAN 0)
  149. (
  150.  
  151. (set #currset "\n\nSoll diese Option aktiv sein ?")
  152. (set #changeenv "Setzen/Ändern von Umgebungsvariablen")
  153. (set #changemonitor "Setzen/Ändern der Standard Monitor Einstellungen")
  154. (set #changecv "Setzen/Ändern des ToolTypes für CVMode")
  155. (set #askchange "Bitte wählen Sie, welche Einstellungen Sie ändern möchten.")
  156. (set #askwereisCVMode "Bitte wählen Sie das CVmode Programm aus, damit das Installationsprogramm den korrekten Pfad von CVMode herausfinden kann.")
  157. (set #noicon "\n\nDas Installationsprogramm konnte die '.info' Datei für CVMode nicht finden.  Bitte kopieren oder installieren Sie CVMode erneut.")
  158. (set #board (cat "\nBitte wählen Sie Ihre Grafikkarte aus.\n"))
  159. (set #board (cat "\nBitte wählen Sie die Grafikkarte aus, die Sie mit CyberGraphX benutzen:\n"))
  160. (set MonitorIS "Eine selbst definierte Einstellungsdatei")
  161. (set #lookslikemonitor (cat "Bitte wählen Sie die Datei aus, die Sie benutzen wollen. "
  162.                             "Wenn Sie sich nicht sicher sind, welche Werte Ihr Monitor verarbeiten kann, "
  163.                             "schauen Sie bitte unverzüglich im Handbuch nach! Es sieht so aus, als wenn es eingestellt ist auf: "
  164.                        )
  165. )
  166. (set #yes "Ja")
  167. (set #no "Nein")
  168. (set #youwantto "Sie wollen die Änderung von:")
  169. (set #to "auf:")
  170. (set #quickchangeenv "Schnelles Setzen/Ändern der Umgebungsvariablen")
  171. (set #currenv "\nMomentane Einstellungen der Umgebungsvariablen\n")
  172. (set #cpup2c (cat "CPUP2C\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  173.                   "Wenn Sie diese Variable setzen, wird die Planar-nach-Chunky Konvertierung "
  174.                   "von der CPU erledigt (im Gegensatz zur Blitter-Konvertierung) "
  175.                   "Damit sind die teilweise merkwürdig aussehenden "planar" Bliteffekte verschwunden, "
  176.                   "aber die CPU-Konvertierung ist langsamer. Wollen Sie diese Möglichkeit aktivieren ?"
  177.              )
  178. )
  179. (set #hirescrsr (cat "HIRESCRSR\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  180.                      "Wenn diese Variable aktiviert ist, werden Lores-Sprites auf nicht-AGA-Geräten "
  181.                      "zu Hires-sprites (Sie werden nicht mehr von der CyberGraphX Software "
  182.                      "verdoppelt). "
  183.                      "(Diese Variable ist identisch mit dem Tooltype HIRESSPRITE "
  184.                      "in der alten Picasso software)."
  185.                 )
  186. )
  187. (set #hide15bit (cat "HIDE15BIT\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  188.                      "Wenn diese Variable aktiviert ist, werden die 15Bit Modi deaktiviert, um "
  189.                      "die Screenmodeliste zu verkuerzen. Die Modes sind immer noch da, aber nicht sichtbar."
  190.                 )
  191. )
  192. (set #alertemu  (cat "ALERTEMU\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  193.                      "Ist diese Variable aktiviert, wird DisplayAlert(), (Die Routine, die eine Guru-Box erzeugt.) "
  194.                      "auf einen CyberGraphX Bildschirm umgeleitet."
  195.                 )
  196. )
  197. (set #nochip    (cat "NOCHIPSCREEN\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  198.                      "Wird diese Option aktiviert, werden CyberGraphX 256-Farben Bildschirme "
  199.                      "immer direkt im FastRAM geöffnet. Das ist sinnvoll bei Rechnern mit 1MB "
  200.                      "ChipRAM, sollte aber mit 2MB ChipRAM Systemen vermieden werden, da die "
  201.                      "alte Methode in einigen Punkten kompatibler ist."
  202.                 )
  203. )
  204. (set #EnvAbort (cat "\n\nEnvSettings konnte keine der Einstellungen finden."
  205.                     "\n\nSind Sie ein registrierter User?  Insofern Sie es sind, müssen "
  206.                     "Sie \"CyberGfx_Install\" aufrufen um die Variablen richtig zu setzen."
  207.                )
  208. )
  209. (set #planes2  (cat "PLANES2FAST\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  210.                      "Ist diese Option aktiv, werden nicht darzustellende "
  211.                      "planare BitMaps im FastRAM angelegt. Diese Option "
  212.                      "beschleunigt die Bearbeitung von planaren BitMaps aber "
  213.                      "kann zu Problemen mit Amiga Originalgrafik führen, wenn "
  214.                      "diese davon ausgeht, dass planare BitMaps im ChipRAM liegen. "
  215.                      "Seien Sie vorsichtig mit der Aktivierung dieser Option."
  216.                 )
  217. )
  218. (set #nopass   (cat "NOPASSTHROUGH\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  219.                     "Wenn diese Option aktiviert ist, wird der Monitorumschalter "
  220.                     "auf jeder von CyberGraphX unterstützten Karte deaktiviert. "
  221.                     "Diese Option ist für Mehr-Monitor Systeme erforderlich. "
  222.                 )
  223. )
  224. (set #keepamiga (cat "KEEPAMIGAVIDEO\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  225.                      "Ist diese Option nicht aktiv, wird jedesmal, wenn "
  226.                      "ein CyberGraphX Bildschirm nach vorne kommt, die Amiga Bildschirm "
  227.                      "DMA abgeschaltet, um den Zugriff auf das ChipMemory zu beschleunigen. "
  228.                      "Dies kann durch Aktivierung der Option vermieden werden. "
  229.                 )
  230. )
  231. (set #bootlogo  (cat "BOOTLOGO\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  232.                      "Ist diese Option inaktiv (auf 'Nein' gesetzt), wird das CyberGraphX Startlogo "
  233.                      "nicht angezeigt während eines Neustarts des Rechners."
  234.                 )
  235. )
  236.  
  237. (set #savemem   (cat "SAVEMEM\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  238.                      "Wenn diese Option aktiv ist, verbraucht CyberGraphX weniger Speicher in kleiner oder gleich "
  239.                      "16 Farben, weil im Fast RAM Speicher ein planares Abbild des Videospeichers gehalten wird "
  240.              "und im Videospeicher ein Chunky Abbild. Die Option NOCHIPSCREEN muß ebenfalls aktiv sein."
  241.                 )
  242. )
  243.  
  244.  
  245. )
  246. )
  247.  
  248. ;********************************************************************************
  249. ; Main Part of the Installer
  250. ;********************************************************************************
  251.  
  252. ;********************************************************************************
  253. ; Find out whats in the env vars...
  254. ;********************************************************************************
  255. (procedure Read_Env
  256.  
  257. (set hires 0)    (set cpup2c 0)  (set hide15bit 0) (set alertemu 0)
  258. (set nochip 0)   (set nopass 0)  (set keepamiga 0) (set planes2 0)
  259. (set bootlogo 0) (set savemem 0)
  260.  
  261. (if (> (exists ("env:cybergraphics/HIRESCRSR")) 0)     (if (= 1 (getenv "cybergraphics/HIRESCRSR")) (set hires 1) ) )
  262. (if (> (exists ("env:cybergraphics/CPUP2C")) 0)        (if (= 1 (getenv "cybergraphics/CPUP2C")) (set cpup2c 1) ) )
  263. (if (> (exists ("env:cybergraphics/HIDE15BIT")) 0)     (if (= 1 (getenv "cybergraphics/HIDE15BIT")) (set hide15bit 1) ) )
  264. (if (> (exists ("env:cybergraphics/ALERTEMU")) 0)      (if (= 1 (getenv "cybergraphics/ALERTEMU")) (set alertemu 1) ) )
  265. (if (> (exists ("env:cybergraphics/NOCHIPSCREEN")) 0)  (if (= 1 (getenv "cybergraphics/NOCHIPSCREEN")) (set nochip 1) ) )
  266. (if (> (exists ("env:cybergraphics/NOPASSTHROUGH")) 0) (if (= 1 (getenv "cybergraphics/NOPASSTHROUGH")) (set nopass 1) ) )
  267. (if (> (exists ("env:cybergraphics/KEEPAMIGAVIDEO")) 0)(if (= 1 (getenv "cybergraphics/KEEPAMIGAVIDEO")) (set keepamiga 1) ) )
  268. (if (> (exists ("env:cybergraphics/PLANES2FAST")) 0)   (if (= 1 (getenv "cybergraphics/PLANES2FAST")) (set planes2 1) ) )
  269. (if (> (exists ("env:cybergraphics/BOOTLOGO")) 0)      (if (= 1 (getenv "cybergraphics/BOOTLOGO")) (set bootlogo 1) ) )
  270. (if (> (exists ("env:cybergraphics/SAVEMEM")) 0)       (if (= 1 (getenv "cybergraphics/SAVEMEM")) (set savemem 1) ) )
  271. )
  272.  
  273. ;********************************************************************************
  274. ; Save the env vars...
  275. ;********************************************************************************
  276. (procedure Save_Env
  277.  
  278. (if (= cpup2c 0) ( (delete "env:cybergraphics/CPUP2C") (delete "envarc:cybergraphics/CPUP2C")  ) )
  279. (if (= cpup2c 1) ( (run "setenv cybergraphics/CPUP2C 1") (copyfiles (source "ENV:cybergraphics/CPUP2C") (dest "ENVARC:cybergraphics") )  ) )
  280. ;***
  281. (if (= HIRESCRSR 0) ( (delete "env:cybergraphics/HIRESCRSR") (delete "envarc:cybergraphics/HIRESCRSR") ) )
  282. (if (= HIRESCRSR 1) ( (run "setenv cybergraphics/HIRESCRSR 1") (copyfiles (source "ENV:cybergraphics/HIRESCRSR") (dest "ENVARC:cybergraphics") ) ) )
  283. ;***
  284. (if (= HIDE15BIT 0) ( (delete "env:cybergraphics/HIDE15BIT") (delete "envarc:cybergraphics/HIDE15BIT") ) )
  285. (if (= HIDE15BIT 1) ( (run "setenv cybergraphics/HIDE15BIT 1") (copyfiles (source "ENV:cybergraphics/HIDE15BIT") (dest "ENVARC:cybergraphics") ) ) )
  286. ;***
  287. (if (= ALERTEMU 0) ( (delete "env:cybergraphics/ALERTEMU") (delete "envarc:cybergraphics/ALERTEMU") ) )
  288. (if (= ALERTEMU 1) ( (run "setenv cybergraphics/ALERTEMU 1") (copyfiles (source "ENV:cybergraphics/ALERTEMU") (dest "ENVARC:cybergraphics") ) ) )
  289. ;***
  290. (if (= NOCHIPSCREEN 0) ( (delete "env:cybergraphics/NOCHIPSCREEN") (delete "envarc:cybergraphics/NOCHIPSCREEN") ) )
  291. (if (= NOCHIPSCREEN 1) ( (run "setenv cybergraphics/NOCHIPSCREEN 1") (copyfiles (source "ENV:cybergraphics/NOCHIPSCREEN") (dest "ENVARC:cybergraphics") ) ) )
  292. ;***
  293. (if (= PLANES2FAST 0) ( (delete "env:cybergraphics/PLANES2FAST") (delete "envarc:cybergraphics/PLANES2FAST") ) )
  294. (if (= PLANES2FAST 1) ( (run "setenv cybergraphics/PLANES2FAST 1") (copyfiles (source "ENV:cybergraphics/PLANES2FAST") (dest "ENVARC:cybergraphics") ) ) )
  295. ;***
  296. (if (= NOPASSTHROUGH 0) ( (delete "env:cybergraphics/NOPASSTHROUGH") (delete "envarc:cybergraphics/NOPASSTHROUGH") ) )
  297. (if (= NOPASSTHROUGH 1) ( (run "setenv cybergraphics/NOPASSTHROUGH 1") (copyfiles (source "ENV:cybergraphics/NOPASSTHROUGH") (dest "ENVARC:cybergraphics") ) ) )
  298. ;***
  299. (if (= KEEPAMIGAVIDEO 0) ( (delete "env:cybergraphics/KEEPAMIGAVIDEO") (delete "envarc:cybergraphics/KEEPAMIGAVIDEO") ) )
  300. (if (= KEEPAMIGAVIDEO 1) ( (run "setenv cybergraphics/KEEPAMIGAVIDEO 1") (copyfiles (source "ENV:cybergraphics/KEEPAMIGAVIDEO") (dest "ENVARC:cybergraphics") ) ) )
  301. ;***
  302. (if (= BOOTLOGO 0) ( (delete "env:cybergraphics/BOOTLOGO") (delete "envarc:cybergraphics/BOOTLOGO") ) )
  303. (if (= BOOTLOGO 1) ( (run "setenv cybergraphics/BOOTLOGO 1") (copyfiles (source "ENV:cybergraphics/BOOTLOGO") (dest "ENVARC:cybergraphics") ) ) )
  304. ;***
  305. (if (= SAVEMEM 0) ( (delete "env:cybergraphics/SAVEMEM") (delete "envarc:cybergraphics/SAVEMEM") ) )
  306. (if (= SAVEMEM 1) ( (run "setenv cybergraphics/SAVEMEM 1") (copyfiles (source "ENV:cybergraphics/SAVEMEM") (dest "ENVARC:cybergraphics") ) ) )
  307.  
  308. )
  309.  
  310. ;****************************************
  311. ; Short Env Set
  312. ;****************************************
  313. (procedure SetEnvShort
  314. (Read_Env)
  315. (set envmask 0)
  316.  
  317. (if (= alertemu  1) (set envmask (+ envmask 1)) )
  318. (if (= bootlogo  1) (set envmask (+ envmask 2)) )
  319. (if (= cpup2c    1) (set envmask (+ envmask 4)) )
  320. (if (= hide15bit 1) (set envmask (+ envmask 8)) )
  321. (if (= hires     1) (set envmask (+ envmask 16)) )
  322. (if (= keepamiga 1) (set envmask (+ envmask 32)) )
  323. (if (= nochip    1) (set envmask (+ envmask 64)) )
  324. (if (= nopass    1) (set envmask (+ envmask 128)) )
  325. (if (= planes2   1) (set envmask (+ envmask 256)) )
  326. (if (= savemem   1) (set envmask (+ envmask 512)) )
  327.  
  328. (set envmask1 (askoptions (choices " ALERTEMU" " BOOTLOGO" " CPUP2C"
  329.                                    " HIDE15BIT" " HIRESCRSR"  " KEEPAMIGAVIDEO"
  330.                                    " NOCHIPSCREEN" " NOPASSTHROUGH" " PLANES2FAST"
  331.                                    " SAVEMEM")
  332.                (prompt #currenv)
  333.                        (help #currenv)
  334.                    (default envmask)
  335.        )
  336. )
  337.  
  338. (if (IN envmask1 0) (set ALERTEMU  1)      (set ALERTEMU  0) )
  339. (if (IN envmask1 1) (set BOOTLOGO  1)      (set BOOTLOGO  0) )
  340. (if (IN envmask1 2) (set cpup2c    1)      (set cpup2c    0) )
  341. (if (IN envmask1 3) (set HIDE15BIT 1)      (set HIDE15BIT 0) )
  342. (if (IN envmask1 4) (set HIRESCRSR 1)      (set HIRESCRSR 0) )
  343. (if (IN envmask1 5) (set KEEPAMIGAVIDEO 1) (set KEEPAMIGAVIDEO 0) )
  344. (if (IN envmask1 6) (set NOCHIPSCREEN 1)   (set NOCHIPSCREEN 0) )
  345. (if (IN envmask1 7) (set NOPASSTHROUGH 1)  (set NOPASSTHROUGH 0) )
  346. (if (IN envmask1 8) (set PLANES2FAST 1)    (set PLANES2FAST 0) )
  347. (if (IN envmask1 9) (set SAVEMEM 1)        (set SAVEMEM 0) )
  348.  
  349. (Save_Env)
  350.  
  351. )
  352.  
  353. ;****************************************
  354. ; Long Env Set
  355. ;****************************************
  356. (procedure SetEnvLong
  357.  
  358. (Read_Env)
  359.  
  360. (set cpup2c   (askchoice     (choices #no #yes)
  361.                            (prompt (cat #cpup2c " " #currset))
  362.                            (help   (cat #cpup2c " " #currset))
  363.                          (default cpup2c)
  364.           )
  365. )
  366.  
  367. (set HIRESCRSR (askchoice    (choices #no #yes)
  368.                            (prompt (cat #hirescrsr " " #currset))
  369.                            (help   (cat #hirescrsr " " #currset))
  370.                          (default hires)
  371.            )
  372. )
  373.  
  374. (set HIDE15BIT (askchoice    (choices #no #yes)
  375.                            (prompt (cat #hide15bit " " #currset))
  376.                            (help   (cat #hide15bit " " #currset))
  377.                          (default hide15bit)
  378.            )
  379. )
  380.  
  381. (set ALERTEMU  (askchoice    (choices #no #yes)
  382.                            (prompt (cat #alertemu " " #currset))
  383.                            (help   (cat #alertemu " " #currset))
  384.                          (default alertemu)
  385.            )
  386. )
  387.  
  388. (set NOCHIPSCREEN (askchoice    (choices #no #yes)
  389.                            (prompt (cat #nochip " " #currset))
  390.                            (help   (cat #nochip " " #currset))
  391.                          (default nochip)
  392.               )
  393. )
  394.  
  395. (set PLANES2FAST (askchoice    (choices #no #yes)
  396.                            (prompt (cat #planes2 " " #currset))
  397.                            (help   (cat #planes2 " " #currset))
  398.                          (default planes2)
  399.               )
  400. )
  401.  
  402. (set NOPASSTHROUGH (askchoice    (choices #no #yes)
  403.                            (prompt (cat #nopass " " #currset))
  404.                            (help   (cat #nopass " " #currset))
  405.                          (default nopass)
  406.               )
  407. )
  408.  
  409. (set KEEPAMIGAVIDEO (askchoice    (choices #no #yes)
  410.                            (prompt (cat #keepamiga " " #currset))
  411.                            (help   (cat #keepamiga " " #currset))
  412.                          (default keepamiga)
  413.               )
  414. )
  415.  
  416. (set BOOTLOGO     (askchoice    (choices #no #yes)
  417.                            (prompt (cat #bootlogo  " " #currset))
  418.                            (help   (cat #bootlogo  " " #currset))
  419.                          (default bootlogo)
  420.               )
  421. )
  422.  
  423. (set SAVEMEM      (askchoice    (choices #no #yes)
  424.                            (prompt (cat #savemem  " " #currset))
  425.                            (help   (cat #savemem  " " #currset))
  426.                          (default savemem)
  427.               )
  428. )
  429.  
  430. (Save_Env)
  431.  
  432. ;****
  433. )
  434.  
  435. ;********************************************************************************
  436. ; Change Set Monitor Defaults mode
  437. ;********************************************************************************
  438. (procedure SetMonitor
  439. (set board (askchoice (choices "Picasso II / Picasso II" "Spectrum" "Piccolo" "Domino"
  440.                                "Retina Z3 BLT" "Piccolo Z3 SD64" "CyberVision64"
  441.                                "A2410" "DraCoAltais" ;"Merlin"
  442.              (prompt #board)
  443.                      (help "Select a Gfx Board")
  444.                    (default #BGuess)
  445.                  )
  446.           )
  447. )
  448.  
  449. (if (= board 0) ((set DirText "PicassoMonitor")     (set Dir "Picasso")     ))
  450. (if (= board 1) ((set DirText "SpectrumMonitor")    (set Dir "Spectrum")    ))
  451. (if (= board 2) ((set DirText "PiccoloMonitor")     (set Dir "Piccolo")     ))
  452. (if (= board 3) ((set DirText "DominoMonitor")      (set Dir "Domino")      ))
  453. (if (= board 4) ((set DirText "RetinaZ3Monitor")    (set Dir "RetinaZ3")    ))
  454. (if (= board 5) ((set DirText "PiccoSD64Monitor")   (set Dir "PiccoSD64")   ))
  455. (if (= board 6) ((set DirText "CyberVisionMonitor") (set Dir "CyberVision") ))
  456. (if (= board 7) ((set DirText "A2410Monitor")       (set Dir "A2410")       ))
  457. (if (= board 8) ((set DirText "RetinaZ3Monitor")    (set Dir "DraCoAltais") ))
  458. (if (= board 9) ((set DirText "MerlinMonitor")      (set Dir "Merlin")      ))
  459.  
  460. (set runstring (cat "search" " ENVARC:cybergraphics/" DirText))
  461. (set runstring1 (cat runstring " 80"))  (if (= (run runstring1) 0) (set MonitorIS "80"))
  462. (set runstring1 (cat runstring " 64"))  (if (= (run runstring1) 0) (set MonitorIS "64"))
  463. (set runstring1 (cat runstring " 57"))  (if (= (run runstring1) 0) (set MonitorIS "57"))
  464. (set runstring1 (cat runstring " 48"))  (if (= (run runstring1) 0) (set MonitorIS "48"))
  465. (set runstring1 (cat runstring " 38"))  (if (= (run runstring1) 0) (set MonitorIS "38"))
  466. (set runstring1 (cat runstring " 35"))  (if (= (run runstring1) 0) (set MonitorIS "35"))
  467. (set runstring1 (cat runstring " 31"))  (if (= (run runstring1) 0) (set MonitorIS "31"))
  468. (set runstring1 (cat runstring " 15"))  (if (= (run runstring1) 0) (set MonitorIS "15"))
  469.  
  470. (set #envcyb  (cat "ENVARC:cybergraphics/" Dir))
  471. (set #envcyb1 (cat "ENVARC:cybergraphics/" DirText))
  472.  
  473. (set #looklike (cat "Monitor-" MonitorIS "khz"))
  474. (if (= MonitorIS "A Custom Setting File") (set #looklike ""))
  475.  
  476. (set    Name (askfile (prompt (cat #lookslikemonitor MonitorIS))
  477.                 (help   #lookslikemonitor)
  478.                         (default (tackon #envcyb #looklike))
  479.                )
  480. )
  481.  
  482.  
  483. (set #updatemonitor (cat #youwantto "\n\n" DirText "\n\n" #to "\n\n" Name "\n") )
  484.  
  485. (if (<> (fileonly Name) "")
  486.  (
  487.    (set todo  (askchoice (choices #yes #no)
  488.                  (prompt #updatemonitor)
  489.                   (help #updatemonitor)
  490.                     (default 0)
  491.  
  492.            )
  493.    )
  494.  
  495.    (if (= todo 0)
  496.       (
  497.          (if (> (exists (#envcyb)) 0)
  498.            (
  499.             (copyfiles (source (cat #envcyb1 ) (dest "ENVARC:cybergraphics/") (newname (cat #envcyb1 ".backup")) ) )
  500.             (delete #envcyb1)
  501.             (textfile (append (fileonly Name)) (dest #envcyb1) )
  502.            )
  503.          )
  504.       )
  505.    )
  506.  
  507.  )
  508. )
  509. ;****
  510. )
  511.  
  512. ;********************************************************************************
  513. ;ASK DEFAULT GFX board  for changing CVMode
  514. ;********************************************************************************
  515. (procedure SetCVMode
  516.  
  517. (set board (askchoice (choices "Picasso II / Picasso II+" "Spectrum" "Piccolo" "Domino"
  518.                                "Retina Z3 BLT" "Piccolo Z3 SD64" "CyberVision64"
  519.                                "A2410" "DraCoAltais" ;"Merlin"
  520.              (prompt #board)
  521.                      (help "Select a Gfx Board")
  522.                    (default #BGuess)
  523.                  )
  524.           )
  525. )
  526.  
  527.  
  528.   (set    Name1 (askfile (prompt #askwereisCVMode)
  529.                 (help   #askwereisCVMode)
  530.                 (default "sys:CVMode")
  531.                 )
  532.   )
  533.   (set Name Name1)
  534.  
  535.   (if (= (fileonly Name1) "") (set Name (tackon Name1 "CVMode")) )
  536.  
  537.   (if (< (exists Name) 1) (abort #noicon) )
  538.   (if (< (exists (cat Name ".info")) 1) (abort #noicon) )
  539.  
  540.   (tooltype    (dest Name)
  541.                   (if (= board 0) (settooltype "BOARD" "Picasso") )
  542.                         (if (= board 1) (settooltype "BOARD" "Spectrum") )
  543.                         (if (= board 2) (settooltype "BOARD" "Piccolo") )
  544.                         (if (= board 3) (settooltype "BOARD" "Domino") )
  545.                         (if (= board 4) (settooltype "BOARD" "RetinaZ3") )
  546.                         (if (= board 5) (settooltype "BOARD" "PiccoSD64") )
  547.                         (if (= board 6) (settooltype "BOARD" "CyberVision") )
  548.                         (if (= board 7) (settooltype "BOARD" "A2410") )
  549.                         (if (= board 8) (settooltype "BOARD" "RetinaZ3") )
  550.                         (if (= board 9) (settooltype "BOARD" "Merlin") )
  551.   )
  552. )
  553.  
  554. ;********************************************************************************
  555. ; Catch Loop
  556. ;********************************************************************************
  557. (procedure MainLoop 
  558.  
  559.   (set ja (askchoice (choices #quickchangeenv #changeenv #changemonitor #changecv #quit)
  560.                      (prompt (cat "\n" #askchange "\n"))
  561.                      (help   #askchange)
  562.                         (default ja)
  563.           )
  564.   )
  565. )
  566.  
  567. (while (<> ja 4)
  568.   (MainLoop)
  569.   (if (= ja 0) (SetEnvShort) )   (if (= ja 1) (SetEnvLong) )
  570.   (if (= ja 2) (SetMonitor) )    (if (= ja 3) (SetCVMode) )
  571. )
  572.  
  573. (set @default-dest "ENVARC:cybergraphics")
  574. (exit "CyberPrefsX is Done.")
  575.  
  576.  
  577.  
  578.